package com.v1.lo;

import org.springframework.stereotype.Service;

import com.v1.model.Comment;
import com.v1.model.Wish;

@Service("CommentTran")
public class CommentTranImpl extends BaseLO implements CommentTran {

	public void addCommentTran(Comment comment, Wish wish) {
		int commentid = (Integer) insert(comment, Statement.Comment_addComment);
		wish.setCommentid(commentid);
		wish.setItemid(comment.getItemid());
		insert(wish, Statement.Wish_addwish);
	}

}
